<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=s, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        {{msg2}}
    </div>
    <!-- Vue3  -->
    <script src="https://unpkg.com/vue@next"></script>
    <script>
        /* Vue3不支持是直接创建vue实例的 */
        // var vm = new Vue({});
        /* vue2和vue3是响应式有一定区别*/
        var vm = Vue.createApp({//选项
            data(){
					return{
							msg2:"hello Vue3"
					}
				}
        });
        var app = vm.mount("#app");//挂载根组件上
        console.log(vm)
        console.log(app)
    </script>
    
</body>
</html>